package top.jiachunlei.decorator;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/2 22:07
 */
public abstract class ShapeDecorator implements Shape
{
    protected Shape shapeD;

    public ShapeDecorator(Shape shapeD)
    {
        this.shapeD = shapeD;
    }

    @Override
    public void draw()
    {
        shapeD.draw();
    }
}
